package se.thoka.twt.client.users;

import com.google.gwt.user.client.rpc.RemoteService;

import se.thoka.twt.shared.exceptions.SessionTimeoutException;
import se.thoka.twt.shared.exceptions.UserLoginFailedException;

public interface AbstractUserService<U extends AbstractUser> extends RemoteService {

	U getCurrentUser() throws SessionTimeoutException;
	
	U loginUser(String username, String password) throws UserLoginFailedException;
	
	void logoutUser();
}
